/**
 * Created by GYL on 2018/7/14
 */
import request from '../../utils/request'

export default {
  // 出入库台账
  // 危废污泥入出库分页查询
  hazardousWasteSludge_pageQuery: (params) => {
    return request({url: '/hh-management-web/hehui/account/hazardousWasteSludge_pageQuery', method: 'POST', data:params})
  },
  // 普通污泥入出仓条件分页查询
  ordinarySludgeBunker_pageQuery: (params) => {
    return request({url: '/hh-management-web/hehui/account/ordinarySludgeBunker_pageQuery', method: 'POST', data:params})
  },
  // 普通污泥入出库分页查询
  ordinarySludge_pageQuery: (params) => {
    return request({url: '/hh-management-web/hehui/account/ordinarySludge_pageQuery', method: 'POST', data:params})
  },
  // 自产危废入出库条件分页查询
  selfHazardousWaste_pageQuery: (params) => {
    return request({url: '/hh-management-web/hehui/account/selfHazardousWaste_pageQuery', method: 'POST', data:params})
  },

  // 二维码生成
  // 产废单位下拉框
  getAllWasteProductionUnits: (params) => {
    return request({url: '/hh-management-web/hehui/qrcode/getAllWasteProductionUnits', method: 'GET', params})
  },
  // 危废类别下拉框
  getAllHazardousWasteTypes: (params) => {
    return request({url: '/hh-management-web/hehui/qrcode/getAllHazardousWasteTypes', method: 'GET', params})
  },
  // 固废类型下拉框
  findAllSolidWasteTypes: (params) => {
    return request({url: '/hh-management-web/hehui/qrcode/findAllSolidWasteTypes', method: 'GET', params})
  },
  // 运输单位下拉框
  findAllTrafficUnits: (params) => {
    return request({url: '/hh-management-web/hehui/qrcode/findAllTrafficUnits', method: 'GET', params})
  },
  // 危废记录条件分页查询
  hazardousWaste_pageQuery: (params) => {
    return request({url: '/hh-management-web/hehui/qrcode/hazardousWaste_pageQuery', method: 'POST', data:params})
  },
  // 增加危废记录
  insertHazardousWaste: (params) => {
    return request({url: '/hh-management-web/hehui/qrcode/insertHazardousWaste',method: 'POST', data:params})
  },
  // 删除危废记录
  deleteHazardousWaste: (params) => {
    return request({url: '/hh-management-web/hehui/qrcode/deleteHazardousWaste',method: 'GET', params})
  },
  // 打印二维码
  qrPrint: (params) => {
    return request({url: '/hh-management-web/hehui/qrcode/qrPrint', method: 'POST', data:params})
  },
  // 新增标识码
  updateHazardousWaste: (params) => {
    return request({url: '/hh-management-web/hehui/qrcode/updateHazardousWaste',method: 'POST', data:params})
  },
  // 查询当天标识码数量
  findIdentificationCodeNumber: (params) => {
    return request({url: '/hh-management-web/hehui/qrcode/findIdentificationCodeNumber',method: 'GET',params})
  },

  // 安环管理
  // 安环培训&环保教育
  // 安环资料分页查询
  attachmentFile_pageQuery: (params) => {
    return request({url: '/hh-management-web/hehui/safe/attachmentFile_pageQuery',method: 'POST', data:params})
  },
  // 删除附件
  deleteAttachmentFile: (params) => {
    return request({url: '/hh-management-web/hehui/safe/deleteAttachmentFile',method: 'GET', params})
  },
  // 增加附件文件
  insertAttachmentFile: (params) => {
    return request({url: '/hh-management-web/hehui/safe/insertAttachmentFile',method: 'POST', data:params})
  },
  // 资料类别下拉框
  findAllDataTypes: (params) => {
    return request({url: '/hh-management-web/hehui/safe/findAllDataTypes',method: 'GET', params})
  },

  // 获取料仓数据
  getHazardousWasteSludgeTu: (params) => {
    return request({url: '/hh-management-web/hehui/stock/getHazardousWasteSludgeTu',method: 'GET', params})
  },
  // 获取仓库料仓信息
  getOrdinarySludgeTu: (params) => {
    return request({url: '/hh-management-web/hehui/stock/getOrdinarySludgeTu',method: 'GET', params})
  },
  // 获取仓库料仓信息
  getSelfHazardousWasteTu: (params) => {
    return request({url: '/hh-management-web/hehui/stock/getSelfHazardousWasteTu',method: 'GET', params})
  },
}
